package com.hlk.hlk_blog.service;


import com.hlk.hlk_blog.entity.Type;

import java.util.List;

/**
 * Created by limi on 2017/10/16.
 */
public interface TypeService {
    List<Type> findType(Integer typeNums);

    //获取所有分类
    List<Type> getAllType();

    //获取最多分类下的typeId
    Long getMaxTypeId();

    //通过编号获取分类
    Type getTypeById(Long id);

    //通过name获取type
    Type getTypeByname(String name);

    //新增type
    boolean saveType(Type type);

    //编辑type
    boolean updateType(Type type);

    //删除type
    boolean delectType(Long id);
}
